<template>
	<view class="list">
		<view class="list_title">
			最新资讯
		</view>
		<view class="list_conten">
			<image :src="Newslist.thumbnail_pic" mode=""></image>
			<p class="conten_title">{{Newslist.title}}</p>
			<rich-text :nodes="Newslist.content" class="text"></rich-text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '资讯列表',
				Newslist: {},
				id: ""
			}
		},
		onLoad(e) {
			this.id = e.id
			this.getNews()
		},
		methods: {
			getNews() {
				let data = {
					id: this.id
				}
				this.$api.detail(data).then(res => {
					
					this.Newslist = res.data.data
					console.log(this.Newslist)
				}, err => {})
			}
		}
	}
</script>

<style lang="less">
	.list {
		margin-top: 40rpx;
		padding: 0 30rpx;

		.list_title {
			height: 40rpx;
			border-left: 2px solid #4104B7;
			font-size: 40rpx;
			color: #333333;
			line-height: 32rpx;
			padding-left: 20rpx;
		}

		.list_conten {
			margin-top: 40rpx;

			image {
				width: 100%;
				height: 400rpx;
			}

			.conten_title {
				font-size: 40rpx;
				font-weight: bold;
			}
			.text{
				margin-top: 20rpx;
				font-size: 32rpx;
			}
		}
	}
</style>
